package org.microsites.remote.dwr;

import org.microsites.domain.model.User;
import org.microsites.remote.UserRemote;
import org.microsites.service.UserService;

public class UserRemoteImpl extends GenericRemoteImpl<User> implements UserRemote {
	
	private UserService userService;

	public User login(String uid, String pwd) {
		return userService.login(uid, pwd);
	}
	
	public User getCurrentUser() {
	    return userService.getCurrentUser();
	}

	public void logout() {
		userService.logout();
	}
	
	public void ping() {}

	public UserService getService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

}
